import { Entity, PrimaryColumn } from 'typeorm';

//用户和角色关联表  用户N-1角色
@Entity('sys_user_role', {
  comment: '用户和角色关联表',
})
export class SysUserWithRoleEntity {
  @PrimaryColumn({ type: 'varchar', name: 'userid', comment: '用户ID' })
  public userid: string;

  @PrimaryColumn({ type: 'varchar', name: 'roleid', comment: '角色ID' })
  public roleid: string;
}
